

#include "ros/ros.h"
#include "ghor_hardware/SetMotorCmd.h"
#include <cstdlib>

int main(int argc, char **argv)
{
  ros::init(argc, argv, "add_two_ints_client");

  ros::NodeHandle n;
  ros::ServiceClient client = n.serviceClient<ghor_hardware::SetMotorCmd>("motorCmd");
  ghor_hardware::SetMotorCmd srv;
  srv.request.motor1 =10;
  if (client.call(srv))
  {
    ROS_INFO("Sum: %ld");
  }
  else
  {
    ROS_ERROR("Failed to call service add_two_ints");
    return 1;
  }

  return 0;
}
